package io.system_in;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {
    /*
    利用System.in 完成Scanner的nextLine()的功能
    BufferedReader -----> readLine()
     */
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));

        String s = br.readLine();//输入流的read方法都是阻塞方法
        System.out.println(s);
    }
}
